package com.friend.street.util;

import java.util.Collection;

public class CollectionUtil {
	/**
	 * 判断一个集合是否为空
	 * @param <T>
	 * @param t
	 * @return
	 */
	public static <T extends Collection<?>> boolean isNil(T t){
		if(t == null){
			return true;
		}else if(t.size() == 0){
			return true;
		}
		return false;
	}

}
